package com.pxmeta.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pxmeta.user.entity.UserMatch;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 用户匹配
 */
public interface UserMatchMapper extends BaseMapper<UserMatch> {

    @Select("SELECT count(1) FROM kt_user_match WHERE user_id = #{userId} and DATEDIFF(create_time,NOW())=0")
    Integer getTodayMatchCount(@Param("userId") Long userId);
}
